package swingtest;

import java.awt.Container;
import java.awt.FlowLayout;

import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.table.DefaultTableModel;

public class J_Table {

	public static void main(String[] args) {
		
	}

	private void initView() {
		JFrame app = new JFrame("J_Table");
		app.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		app.setSize(350, 250);
		
		Container c = app.getContentPane();
		c.setLayout(new FlowLayout());
		JButton button1 = new JButton("添加行");
		JButton button2 = new JButton("添加列");
		JButton button3 = new JButton("删除行");
		JButton button4 = new JButton("删除列");
		c.add(button1);
		c.add(button2);
		c.add(button3);
		c.add(button4);
		
		DefaultTableModel m_data = new DefaultTableModel();
		
		app.setVisible(true);
	}
}
